#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include <wx/string.h>
#include <wx/textctrl.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/listbox.h>
#include <wx/stattext.h>
#include <wx/sizer.h>
#include <wx/panel.h>
#include <wx/splitter.h>
#include <wx/frame.h>

///////////////////////////////////////////////////////////////////////////////
/// Class FTP
///////////////////////////////////////////////////////////////////////////////

 class FTP : public wxPanel
 {
	private:

        virtual void lPathOnTextEnter( wxCommandEvent& );
        virtual void rPathOnTextEnter( wxCommandEvent& );

	public:

           connection        * f_c;
           wxPanel           * pLeft;
           wxPanel           * pRight;
           wxBoxSizer        * sz4;
	   wxBoxSizer        * sz5;
	   wxBoxSizer        * sz6;
	   wxSplitterWindow  * split;
	   wxPanel           * p1;
	   Qlist             * lList;
	   wxComboBox        * lPath;
	   wxComboBox        * rPath;
	   Qlist             * rList;

           FTP(wxWindow* parent,
               wxWindowID id = wxID_ANY,
               const wxPoint& pos = wxDefaultPosition,
               const wxSize& size = wxDefaultSize,
               long style = wxTAB_TRAVERSAL);
		
           ~FTP();
		
           void process_ftp_state (wxCommandEvent&);
           char read_ftp_cc (connection *);

           void splitOnIdle( wxIdleEvent& )
           {
             split->SetSashPosition( 300 );
             split->Disconnect( wxEVT_IDLE, wxIdleEventHandler( FTP::splitOnIdle ), NULL, this );
           }
	
 };


